package com.chen.base.module.login.controller;

import com.chen.base.module.base.dto.Response;
import com.chen.base.module.login.contract.vo.AdminLoginVO;
import com.chen.base.module.login.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Title: manager-spring-mvc-hb
 * @Description: to do
 * @Author: chenjiwei
 * @Date: 2020-11-24 22:03
 * @Version: 1.0.0
 */

@RestController
@RequestMapping("/base")
public class LoginController {

    @Autowired
    private AdminService adminService;

    @PostMapping("/login")
    public Response login(@RequestBody AdminLoginVO vo){

        return adminService.login(vo);

    }
}
